package MOLE;

import java.util.*;

//Tangible_doc_comment_start 
//Tangible_doc_comment_body UI ��ժҪ˵����
//Tangible_doc_comment_end
public class UI
{



    public UI()
    {
        //
        // TODO: �ڴ˴���ӹ��캯���߼�
        //
    }


    //		public static BindArraylistAndSelect( ArrayList a,System.Web.UI.WebControls.DropDownList d)
    // 		{
    ////			for(int i=0;i<=dtDataTable.Rows.Count-1;i++)
    ////			{
    ////				ddl.Items.Add(new ListItem("",""));
    ////			}
    //
    //
    //
    //		}

    public static void BindHashtableToSelect(Hashtable h, System.Web.UI.WebControls.DropDownList d)
    {
        for (DictionaryEntry myDE : h)
        {
            String cmdText=myDE.Key.toString();
            String cmdParms=(String)myDE.Value;

             d.Items.Add(new ListItem(cmdText,cmdParms));


        }

    }

    public static String t(String a, String b)
    {

        return "";
     }


    public static void DatagridAddTrOverColor(System.Web.UI.WebControls.DataGridItemEventArgs e)
    {

        if (e.Item.ItemType==ListItemType.Item)
        {
��
{
���� e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=\""+e.Item.Style["BACKGROUND-COLOR"]+"\"");
���� e.Item.Attributes.Add("onmouseover","this.style.backgroundColor=\""+MOLE.UIResx.TrOverColor+"\"");
��
}
        }
if (e.Item.ItemType==ListItemType.AlternatingItem)
{
��
{
            e.Item.Attributes.Add("style","background-color: #F7F7F7;");

���� e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=\""+"#F7F7F7"+"\"");
 ���� e.Item.Attributes.Add("onmouseover","this.style.backgroundColor=\""+ MOLE.UIResx.TrOverColor +"\"");
�� }
    }
}

    public static void DatagridAddTrOverColor2(System.Web.UI.WebControls.DataGridItemEventArgs e)
    {

        if (e.Item.ItemType==ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem)
        {
��
{
���� e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=\""+e.Item.Style["BACKGROUND-COLOR"]+"\"");
���� e.Item.Attributes.Add("onmouseover","this.style.backgroundColor=\""+MOLE.UIResx.TrOverColor+"\"");
�� �� }
    }
        }










}
}
